package com.zsrt.day20161011;

import java.util.Scanner;

public class Page {
	public static void main(String[] args) {
		Scanner sr=new Scanner(System.in);
		
		/*int allnumber ; //总主题数
		int listnumber ; //每页主题数
		int allpage ;    //总页数    */
		
		System.out.println("请输入总主题数：");
		int allnumber = sr.nextInt();
		System.out.println("请输入每页主题数：");
		int listnumber = sr.nextInt();
		int allpage = (int)Math.ceil((float)allnumber / listnumber);
		System.out.println("总页数:"+allpage);
		
		//System.out.println("请输入每页主题数：");
		//int sc = Scannerutils.Page();
		
	/*	allnumber = shuru.nextInt();
		System.out.println("请输入每页主题数 ");
		listnumber = shuru.nextInt();
		allpage =(int) Math.ceil((float) allnumber / listnumber);
		System.out.println("共需要总页数为："+allpage); */
	
	}
}